package com.jack.helloworld.activity.mode;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.jack.helloworld.R;
import com.orhanobut.logger.Logger;

public class ThirdActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_third);
        Logger.d("ThirdActivity#onCreate");
        Logger.d("ThirdActivity#onCreate#task id: " + getTaskId());
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Logger.d("ThirdActivity#onDestroy");
    }

    public void doClick(View view) {
        Intent intent;
        switch (view.getId()) {
            case R.id.btn_activity_third_to_first :
                intent = new Intent(this, FirstActivity.class);
                startActivity(intent);
                break;

            case R.id.btn_activity_third_to_third:
                intent = new Intent(this, ThirdActivity.class);
                startActivity(intent);
                break;

        }
    }
}
